<template>
  <el-card>
    <el-row type="flex" justify="end" align="middle">
      <el-col>
        <div v-if="showBefore">
          <!-- <el-button type="primary">添加权限</el-button> -->
          <slot name="before" />
        </div>
      </el-col>
      <!-- 右按钮 -->
      <el-col>
        <el-row type="flex" justify="end">
          <!-- <el-button type="primary">添加权限</el-button> -->
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>
<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: true // 默认显示
    }
  }
}
</script>
<style>

</style>

